<eq name="type" value="add">
<input id="{$field.name}" name="{$field.name}" placeholder="{$field.homeremark}" type="text">
<else/>
<input id="{$field.name}" name="{$field.name}" placeholder="{$field.homeremark}" value="{$data[$field['name']]} type="text">
</eq>